<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::any('menutest', 'App\Http\Controllers\TestController@domenu');
Route::any('dotest', 'App\Http\Controllers\TestController@dotest');
Route::any('test_stock_decrease', 'App\Http\Controllers\TestController@test_stock_decrease');


Route::any('dingdingcallback', 'App\Http\Controllers\Notify\DingDingController@callback');

Route::any('dotestmenu', 'App\Http\Controllers\MenuTestController@doexport');// 权限数据表更新
Route::any('dotestsetmenu', 'App\Http\Controllers\MenuTestController@dotestsetmenu');//权限的redis更新

Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
    return $request->user();
});
Route::any('mangertestindex', 'App\Http\Controllers\Manger\MangerController@index');
Route::any('common/downLoadFile', 'App\Http\Controllers\Common\CommonController@downLoadFile');
Route::any('common/dotestexport', 'App\Http\Controllers\Common\CommonController@dotestexport');
Route::any('common/dotestimport', 'App\Http\Controllers\Common\CommonController@dotestimport');


Route::any('common/dotest', 'App\Http\Controllers\Common\CommonController@dotest');
Route::any('common/testclearmemcache', 'App\Http\Controllers\Common\CommonController@testclearmemcache');

Route::any('chanjet/receivedMsgByApp', 'App\Http\Controllers\Chanjet\TplusCommonController@receivedMsgByApp');
Route::any('chanjet/getTokenByAuthcode', 'App\Http\Controllers\Chanjet\TplusCommonController@getTokenByAuthcode');
Route::any('chanjet/getTplusAcount', 'App\Http\Controllers\Chanjet\TplusCommonController@getTplusAcount');
Route::post('common/test', 'App\Http\Controllers\Chanjet\TplusCommonController@test');


//不需要登陆
Route::post('login/dologin', 'App\Http\Controllers\Login\LoginController@dologin');
Route::post('login/getcompanylist', 'App\Http\Controllers\Login\LoginController@getcompanylist');



//需登录
Route::group([
    'prefix' => '',
    'middleware' => ['mangerislogin', 'sitesigncheck']
], function ($router) {
    Route::post('login/dologinchangecompany', 'App\Http\Controllers\Login\LoginController@dologinchangecompany'); //切换账套登录
    Route::post('login/getchangecompanylist', 'App\Http\Controllers\Login\LoginController@getchangecompanylist'); //获取可切换账套
    Route::post('login/dologinout', 'App\Http\Controllers\Login\LoginController@dologinout');
    Route::post('login/changepassword', 'App\Http\Controllers\Login\LoginController@changepassword');

    /**
     * 六端账号管理
     */
    Route::group([
        'prefix' => 'manger'
    ], function ($router) {
        Route::post('getlist', 'App\Http\Controllers\Manger\MangerController@getlist');
        Route::post('dopostadd', 'App\Http\Controllers\Manger\MangerController@dopostadd');
        Route::post('dopostedit', 'App\Http\Controllers\Manger\MangerController@dopostedit');
        Route::post('changestatus', 'App\Http\Controllers\Manger\MangerController@changestatus');
        Route::post('resetpassword', 'App\Http\Controllers\Manger\MangerController@resetpassword');
        Route::post('getruleinfo', 'App\Http\Controllers\Manger\MangerController@getruleinfo');
        Route::post('dopostrule', 'App\Http\Controllers\Manger\MangerController@dopostrule');
        Route::post('getone', 'App\Http\Controllers\Manger\MangerController@getone');
        Route::post('getcpduserlist', 'App\Http\Controllers\Manger\MangerController@getcpduserlist');

        Route::group([
            'prefix' => 'department',
        ], function ($router) {
            Route::post('getlist', 'App\Http\Controllers\Manger\MangerDepartmentController@getlist');
            Route::post('dopostadd', 'App\Http\Controllers\Manger\MangerDepartmentController@dopostadd');
            Route::post('dopostedit', 'App\Http\Controllers\Manger\MangerDepartmentController@dopostedit');
            Route::post('changestatus', 'App\Http\Controllers\Manger\MangerDepartmentController@changestatus');
            Route::post('dodel', 'App\Http\Controllers\Manger\MangerDepartmentController@dodel');
        });

        Route::group([
            'prefix' => 'dingding',
        ], function ($router) {
            Route::post('syncdinguserinfo', 'App\Http\Controllers\Manger\DingdingController@syncdinguserinfo');
        });
    });

    /**
     * chanjet 数据查询
    */
    Route::group([
        'prefix' => 'chanjet',
    ], function ($router) {
        //----父子孙 单据-------
        //采购费用分摊单
        Route::post('feecostshare/getlist', 'App\Http\Controllers\Chanjet\TplusFeeCostShare@getlist');

        //-----父子单据-----
        //销售发票
        Route::post('saleinvoice/getlist', 'App\Http\Controllers\Chanjet\TplusSaleInvoice@getlist');
        Route::post('saleinvoiceinfo/getlist', 'App\Http\Controllers\Chanjet\TplusSaleInvoiceInfo@getlist');
        Route::post('saleinvoice/getSettleCustomerList', 'App\Http\Controllers\Chanjet\TplusSaleInvoice@getSettleCustomerList');

        //采购发票
        Route::post('purchaseinvoices/getlist', 'App\Http\Controllers\Chanjet\TplusPurchaseInvoice@getlist');
        Route::post('purchaseinvoicesinfo/getlist', 'App\Http\Controllers\Chanjet\TplusPurchaseInvoiceInfo@getlist');
        Route::post('purchaseinvoices/getPartnerList', 'App\Http\Controllers\Chanjet\TplusPurchaseInvoice@getPartnerList');

        //其他入库单
        Route::post('otherinboundorder/getlist', 'App\Http\Controllers\Chanjet\TplusOtherInboundOrder@getlist');
        //其他出库单
        Route::post('otheroutboundorder/getlist', 'App\Http\Controllers\Chanjet\TplusOtherOutboundOrder@getlist');
        //入库调整单
        Route::post('inboundadjustmentorder/getlist', 'App\Http\Controllers\Chanjet\TplusInboundAdjustmentOrder@getlist');
        //出库调整单
        Route::post('outboundadjustmentorder/getlist', 'App\Http\Controllers\Chanjet\TplusOutboundAdjustmentOrder@getlist');
        //调拨单
        Route::post('transferorder/getlist', 'App\Http\Controllers\Chanjet\TplusTransferOrder@getlist');
        //盘点单
        Route::post('countorder/getlist', 'App\Http\Controllers\Chanjet\TplusCountOrder@getlist');
        //费用单
        Route::post('expensevoucher/getlist', 'App\Http\Controllers\Chanjet\TplusExpenseVoucher@getlist');

        //-----单据-----
        //存货总账
        Route::post('inventoryledger/getlist', 'App\Http\Controllers\Chanjet\TplusInventoryLedger@getlist');
        //应收总账
        Route::post('receiveledger/getlist', 'App\Http\Controllers\Chanjet\TplusReceiveLedger@getlist');
        //应付总账
        Route::post('paymentledger/getlist', 'App\Http\Controllers\Chanjet\TplusPaymentLedger@getlist');
        //应收明细
        Route::post('receivedetail/getlist', 'App\Http\Controllers\Chanjet\TplusReceiveDetail@getlist');
        //应付明细
        Route::post('paymentdetail/getlist', 'App\Http\Controllers\Chanjet\TplusPaymentDetail@getlist');
        //付款单
        Route::post('paymentorder/getlist', 'App\Http\Controllers\Chanjet\TplusPaymentOrder@getlist');
        //收款单
        Route::post('receiptorder/getlist', 'App\Http\Controllers\Chanjet\TplusReceiptOrder@getlist');

        //存货明细
        Route::post('inventoryinfo/getlist', 'App\Http\Controllers\Chanjet\TplusInventoryInfo@getlist');
        //呆滞存货分析
        Route::post('sluggishinventoryanalysis/getlist', 'App\Http\Controllers\Chanjet\TplusSluggishInventoryAnalysis@getlist');
        //库存周转率分析
        Route::post('inventoryturnoveranalysis/getlist', 'App\Http\Controllers\Chanjet\TplusInventoryTurnoverAnalysis@getlist');
        //库龄分析
        Route::post('inventoryageanalysis/getlist', 'App\Http\Controllers\Chanjet\TplusInventoryAgeAnalysis@getlist');
        //销售毛利分析
        Route::post('salegrossprofitanalysis/getlist', 'App\Http\Controllers\Chanjet\TplusSaleGrossProfitAnalysis@getlist');

        //账套列表获取
        Route::post('account/getlist', 'App\Http\Controllers\Chanjet\TplusAccount@getlist');


        //请求远程数据
        Route::post('feecostshare/getExternalData', 'App\Http\Controllers\Chanjet\TplusFeeCostShare@getExternalData');
        Route::post('prereceivabletoreceivable/getExternalData', 'App\Http\Controllers\Chanjet\TplusPreReceivableToReceivable@getExternalData');
        Route::post('prepaymenttopayment/getExternalData', 'App\Http\Controllers\Chanjet\TplusPrePaymentToPayment@getExternalData');
        Route::post('receivabletopayment/getExternalData', 'App\Http\Controllers\Chanjet\TplusReceivableToPayment@getExternalData');
        Route::post('saleinvoice/getExternalData', 'App\Http\Controllers\Chanjet\TplusSaleInvoice@getExternalData');
        Route::post('purchaseinvoice/getExternalData', 'App\Http\Controllers\Chanjet\TplusPurchaseInvoice@getExternalData');
        Route::post('otherinboundorder/getExternalData', 'App\Http\Controllers\Chanjet\TplusOtherInboundOrder@getExternalData');
        Route::post('otheroutboundorder/getExternalData', 'App\Http\Controllers\Chanjet\TplusOtherOutboundOrder@getExternalData');
        Route::post('inboundadjustmentorder/getExternalData', 'App\Http\Controllers\Chanjet\TplusInboundAdjustmentOrder@getExternalData');
        Route::post('outboundadjustmentorder/getExternalData', 'App\Http\Controllers\Chanjet\TplusOutboundAdjustmentOrder@getExternalData');
        Route::post('transferorder/getExternalData', 'App\Http\Controllers\Chanjet\TplusTransferOrder@getExternalData');
        Route::post('countorder/getExternalData', 'App\Http\Controllers\Chanjet\TplusCountOrder@getExternalData');
        Route::post('receivabletoreceivable/getExternalData', 'App\Http\Controllers\Chanjet\TplusReceivableToReceivable@getExternalData');
        Route::post('paymenttopayment/getExternalData', 'App\Http\Controllers\Chanjet\TplusPaymentToPayment@getExternalData');
        Route::post('inventoryledger/getExternalData', 'App\Http\Controllers\Chanjet\TplusInventoryLedger@getExternalData');
        Route::post('receiveledger/getExternalData', 'App\Http\Controllers\Chanjet\TplusReceiveLedger@getExternalData');
        Route::post('paymentledger/getExternalData', 'App\Http\Controllers\Chanjet\TplusPaymentLedger@getExternalData');
        Route::post('receivedetail/getExternalData', 'App\Http\Controllers\Chanjet\TplusReceiveDetail@getExternalData');
        Route::post('paymentdetail/getExternalData', 'App\Http\Controllers\Chanjet\TplusPaymentDetail@getExternalData');
        Route::post('paymentorder/getExternalData', 'App\Http\Controllers\Chanjet\TplusPaymentOrder@getExternalData');
        Route::post('receiptorder/getExternalData', 'App\Http\Controllers\Chanjet\TplusReceiptOrder@getExternalData');
        Route::post('inventoryinfo/getExternalData', 'App\Http\Controllers\Chanjet\TplusInventoryInfo@getExternalData');
        Route::post('sluggishinventoryanalysis/getExternalData', 'App\Http\Controllers\Chanjet\TplusSluggishInventoryAnalysis@getExternalData');
        Route::post('inventoryturnoveranalysis/getExternalData', 'App\Http\Controllers\Chanjet\TplusInventoryTurnoverAnalysis@getExternalData');
        Route::post('inventoryageanalysis/getExternalData', 'App\Http\Controllers\Chanjet\TplusInventoryAgeAnalysis@getExternalData');


    });

    /**
     * 销售、业务端客户管理
     */
    Route::group([
        'prefix' => 'custom',
    ], function ($router) {
        Route::post('dopostadd', 'App\Http\Controllers\Custom\CustomController@dopostadd');
        Route::post('getone', 'App\Http\Controllers\Custom\CustomController@getone');
        Route::post('dopostedit', 'App\Http\Controllers\Custom\CustomController@dopostedit');
        Route::post('getlist', 'App\Http\Controllers\Custom\CustomController@getlist');
        Route::post('dopostfreeze', 'App\Http\Controllers\Custom\CustomController@dopostfreeze');
        //审核客户信息
        Route::post('handlecustomreview', 'App\Http\Controllers\Custom\CustomController@handlecustomreview');
        //审核开票信息
        Route::post('handleinvoicereview', 'App\Http\Controllers\Custom\CustomController@handleinvoicereview');
        //导入
        Route::post('doimport', 'App\Http\Controllers\Custom\CustomController@doimport');
        //下载模版
        Route::post('dodownload', 'App\Http\Controllers\Custom\CustomController@dodownload');
        //导出
        Route::post('doexport', 'App\Http\Controllers\Custom\CustomController@doexport');
    });

    Route::group([
        'prefix' => 'customrefund',
    ], function ($router) {
        Route::post('dopostadd', 'App\Http\Controllers\Refund\CustomRefundController@dopostadd');
        Route::post('dopostedit', 'App\Http\Controllers\Refund\CustomRefundController@dopostedit');
        Route::post('getone', 'App\Http\Controllers\Refund\CustomRefundController@getone');
        Route::post('getlist', 'App\Http\Controllers\Refund\CustomRefundController@getlist');
        Route::post('getlistone', 'App\Http\Controllers\Refund\CustomRefundController@getlistone');
        Route::post('getlisttwo', 'App\Http\Controllers\Refund\CustomRefundController@getlisttwo');
        Route::post('review', 'App\Http\Controllers\Refund\CustomRefundController@review');
        Route::post('getlistthree', 'App\Http\Controllers\Refund\CustomRefundController@getlistthree');
        Route::post('bankuan', 'App\Http\Controllers\Refund\CustomRefundController@bankuan');
        Route::post('getlistfour', 'App\Http\Controllers\Refund\CustomRefundController@getlistfour');
    });

    /**
     * 销售端开票信息管理
     */
    //    Route::group([
    //        'prefix' => 'invoice',
    //    ], function ($router) {
    //        Route::post('dopostadd', 'App\Http\Controllers\Invoice\InvoiceController@dopostadd');
    //        Route::post('getone', 'App\Http\Controllers\Invoice\InvoiceController@getone');
    //        Route::post('dopostedit', 'App\Http\Controllers\Invoice\InvoiceController@dopostedit');
    //        Route::post('getlist', 'App\Http\Controllers\Invoice\InvoiceController@getlist');
    //        //审核
    //        Route::post('dopostreview', 'App\Http\Controllers\Invoice\InvoiceController@dopostreview');
    //        //导出
    //        Route::post('doexport', 'App\Http\Controllers\Invoice\InvoiceController@doexport');
    //        //导入
    //        Route::post('doimport', 'App\Http\Controllers\Invoice\InvoiceController@doimport');
    //        //下载模版
    //        Route::post('dodownload', 'App\Http\Controllers\Invoice\InvoiceController@dodownload');
    //    });

    /**
     * 消息管理
     */
    Route::group([
        'prefix' => 'notice',
    ], function ($router) {
        Route::post('dopostread', 'App\Http\Controllers\Notice\NoticeController@dopostread');
        Route::post('getlist', 'App\Http\Controllers\Notice\NoticeController@getlist');
        Route::post('getunreadcount', 'App\Http\Controllers\Notice\NoticeController@getunreadcount');
    });

    /**
     * 认领单管理
     */
    Route::group([
        'prefix' => 'receivemoney',
    ], function ($router) {
        Route::post('dopostadd', 'App\Http\Controllers\Receivemoney\ReceivemoneyController@dopostadd');
        Route::post('dopostedit', 'App\Http\Controllers\Receivemoney\ReceivemoneyController@dopostedit');
        Route::post('getlist', 'App\Http\Controllers\Receivemoney\ReceivemoneyController@getlist');
        Route::post('getone', 'App\Http\Controllers\Receivemoney\ReceivemoneyController@getone');
        //发送
        Route::post('sentout', 'App\Http\Controllers\Receivemoney\ReceivemoneyController@sentout');
        //认款
        Route::post('claimed', 'App\Http\Controllers\Receivemoney\ReceivemoneyController@claimed');
        //撤回
        Route::post('recall', 'App\Http\Controllers\Receivemoney\ReceivemoneyController@recall');
        //平账
        Route::post('move', 'App\Http\Controllers\Receivemoney\ReceivemoneyController@move');
        //红点
        Route::post('redpoint', 'App\Http\Controllers\Receivemoney\ReceivemoneyController@redpoint');
        Route::post('dodel', 'App\Http\Controllers\Receivemoney\ReceivemoneyController@dodel');
    });

    /**
     * 收款单管理
     */
    Route::group([
        'prefix' => 'receipt',
    ], function ($router) {
        Route::post('getlist', 'App\Http\Controllers\Receivemoney\ReceiptController@getlist');
        Route::post('getone', 'App\Http\Controllers\Receivemoney\ReceiptController@getone');
    });

    /**
     * 销售规则设置
     */
    Route::group([
        'prefix' => 'salerule',
    ], function ($router) {
        // Route::post('dopostadd', 'App\Http\Controllers\Salerule\SaleruleController@dopostadd');
        Route::post('dopostedit', 'App\Http\Controllers\Salerule\SaleruleController@dopostedit');
        Route::post('getone', 'App\Http\Controllers\Salerule\SaleruleController@getone');
        Route::post('getcpid', 'App\Http\Controllers\Salerule\SaleruleController@getcpid');
    });

    /**
     * 销售定价
     */
    Route::group([
        'prefix' => 'saleprice',
    ], function ($router) {
        //基价管理
        Route::post('dopostaddbase', 'App\Http\Controllers\Saleprice\SalepriceController@dopostaddbase');
        //加价管理
        Route::post('dopostaddextra', 'App\Http\Controllers\Saleprice\SalepriceController@dopostaddextra');
        Route::post('dopostinfo', 'App\Http\Controllers\Saleprice\SalepriceController@dopostinfo');
        //历史价格
        Route::post('getlist', 'App\Http\Controllers\Saleprice\SalepriceController@getlist');
        // 覆盖
        Route::post('cover', 'App\Http\Controllers\Saleprice\SalepriceController@cover');
    });

    /**
     * 系统参数管理
     */
    Route::group([
        'prefix' => 'systemparam',
    ], function ($router) {
        Route::post('upsert', 'App\Http\Controllers\Systemparam\SystemparamController@upsert');
        Route::post('getone', 'App\Http\Controllers\Systemparam\SystemparamController@getone');
    });

    /**
     * 订单管理
     */
    Route::group([
        'prefix' => 'order',
    ], function ($router) {
        //销售订单
        Route::post('showdata', 'App\Http\Controllers\Order\ShowDataController@showdata');
        Route::group([
            'prefix' => 'saleorder',
        ], function ($router) {
            Route::post('dopostadd', 'App\Http\Controllers\Order\SaleorderController@dopostadd');
            Route::post('dopostedit', 'App\Http\Controllers\Order\SaleorderController@dopostedit');
            Route::post('getlist', 'App\Http\Controllers\Order\SaleorderController@getlist');
            Route::post('getone', 'App\Http\Controllers\Order\SaleorderController@getone');
            //开票信息查询
            Route::post('getinvoiceone', 'App\Http\Controllers\Order\SaleorderController@getinvoiceone');
            //发起删除
            Route::post('initdel', 'App\Http\Controllers\Order\SaleorderController@initdel');
            //删除通过、驳回
            Route::post('handledel', 'App\Http\Controllers\Order\SaleorderController@handledel');
            //低于指导价列表
            Route::post('getlowpricelist', 'App\Http\Controllers\Order\SaleorderController@getlowpricelist');
            //低于指导价通过、驳回
            Route::post('handlebelow', 'App\Http\Controllers\Order\SaleorderController@handlebelow');
            //获取表头信息
            Route::post('gettablefield', 'App\Http\Controllers\Order\SaleorderController@gettablefield');
            //编辑表头信息
            Route::post('changeorderfield', 'App\Http\Controllers\Order\SaleorderController@changeorderfield');
            //获取指导价
            Route::post('getprice', 'App\Http\Controllers\Order\SaleorderController@getprice');
            //预开发票
            Route::post('preview', 'App\Http\Controllers\Order\SaleorderController@preview');
            //成交记录
            Route::post('count', 'App\Http\Controllers\Order\SaleorderController@count');
            Route::post('getunpasscount', 'App\Http\Controllers\Order\SaleorderController@getunpasscount');
            Route::post('handleorder', 'App\Http\Controllers\Order\SaleorderController@handleorder');
            Route::post('getotherfeepayinfo', 'App\Http\Controllers\Order\SaleorderController@getotherfeepayinfo');
            Route::post('dopostpayotherfee', 'App\Http\Controllers\Order\SaleorderOtherfeePayController@dopostadd');
            //计提
            Route::get('getaccrualperformance', 'App\Http\Controllers\Order\SaleorderController@getaccrualperformance');
            //修改计提价格
            Route::post('doupdateaccrual', 'App\Http\Controllers\Order\SaleorderController@doupdateaccrual');

            Route::post('getsaleorderstatus', 'App\Http\Controllers\Order\SaleorderController@getsaleorderstatus');
        });

        //其他费用
        Route::group([
            'prefix' => 'saleorderfee',
        ], function ($router) {
            Route::post('dopostadd', 'App\Http\Controllers\Order\SaleorderOtherfeePayController@dopostadd2');
            Route::post('getone', 'App\Http\Controllers\Order\SaleorderfeeController@getone');
            Route::post('getinfo', 'App\Http\Controllers\Order\SaleorderotherfeeController@getinfo');
            Route::post('docancel', 'App\Http\Controllers\Order\SaleorderOtherfeePayApproveController@docancel');
            Route::post('getlist', 'App\Http\Controllers\Order\SaleorderOtherfeePayController@getlist');
            Route::post('getsublist', 'App\Http\Controllers\Order\SaleorderOtherfeePayController@getsublist');
            Route::post('getlistts', 'App\Http\Controllers\Order\SaleorderOtherfeePayController@getListByTs');
            Route::post('getlistcp', 'App\Http\Controllers\Order\SaleorderOtherfeePayController@getListByCp');
            Route::post('getListbalance', 'App\Http\Controllers\Order\SaleorderOtherfeePayController@getListbalance');
            Route::post('changetstatus', 'App\Http\Controllers\Order\SaleorderOtherfeePayApproveController@changetstatus');
            Route::post('changecstatus', 'App\Http\Controllers\Order\SaleorderOtherfeePayApproveController@changecstatus');
            Route::post('changecptatus', 'App\Http\Controllers\Order\SaleorderOtherfeePayApproveController@changecptatus');
//            Route::post('getoinfo', 'App\Http\Controllers\Order\SaleorderotherfeeController@getoinfo');
//            Route::post('getlistcn', 'App\Http\Controllers\Order\SaleorderotherfeeController@getlistCn');
//            Route::post('doreapay', 'App\Http\Controllers\Order\SaleorderotherfeeController@doreapay');
            Route::post('getoinfo', 'App\Http\Controllers\Order\SaleorderOtherfeePayController@getoinfo');
            Route::post('getlistcn', 'App\Http\Controllers\Order\SaleorderOtherfeePayController@getListBycn');
            Route::post('doreapay', 'App\Http\Controllers\Order\SaleorderOtherfeePayApproveController@doreapay');

            Route::post('getpaylist', 'App\Http\Controllers\Order\SaleorderOtherfeePayController@getlist');
        });

        //销售订单预开发票
        Route::group([
            'prefix' => 'orderinvoice',
        ], function ($router) {
            Route::post('dopostadd', 'App\Http\Controllers\Order\OrderinvoiceController@dopostadd');
            Route::post('dopostedit', 'App\Http\Controllers\Order\OrderinvoiceController@dopostedit');
            Route::post('getlist', 'App\Http\Controllers\Order\OrderinvoiceController@getlist');
            Route::post('getone', 'App\Http\Controllers\Order\OrderinvoiceController@getone');
            //开票、补开
            Route::post('invoice', 'App\Http\Controllers\Order\OrderinvoiceController@invoice');
            //获取表头信息
            Route::post('gettablefield', 'App\Http\Controllers\Order\OrderinvoiceController@gettablefield');
            //编辑表头信息
            Route::post('changeorderfield', 'App\Http\Controllers\Order\OrderinvoiceController@changeorderfield');
        });

        //销货单
        Route::group([
            'prefix' => 'salesorder',
        ], function ($router) {
            Route::post('dopostadd', 'App\Http\Controllers\Order\SalesorderController@dopostadd');
            Route::post('dopostedit', 'App\Http\Controllers\Order\SalesorderController@dopostedit');
            Route::post('getlist', 'App\Http\Controllers\Order\SalesorderController@getlist');
            Route::post('getone', 'App\Http\Controllers\Order\SalesorderController@getone');
            Route::post('dodel', 'App\Http\Controllers\Order\SalesorderController@dodel');
            //上传报车单
            Route::post('uploadform', 'App\Http\Controllers\Order\SalesorderController@uploadform');
            //获取表头信息
            Route::post('gettablefield', 'App\Http\Controllers\Order\SalesorderController@gettablefield');
            //编辑表头信息
            Route::post('changeorderfield', 'App\Http\Controllers\Order\SalesorderController@changeorderfield');
            Route::post('dopostapply', 'App\Http\Controllers\Order\SalesorderController@dopostapply');
            Route::post('hanledpass', 'App\Http\Controllers\Order\SalesorderController@hanledpass');
            Route::post('hanledrefuse', 'App\Http\Controllers\Order\SalesorderController@hanledrefuse');
            Route::post('doposteditsuborder', 'App\Http\Controllers\Order\SalesorderController@doposteditsuborder');
            //报车单审批
            Route::post('getcarreportlist', 'App\Http\Controllers\Order\SalesorderController@getcarreportlist');
            Route::post('getcarreportone', 'App\Http\Controllers\Order\SalesorderController@getcarreportone');
        });

        //出库单
        Route::group([
            'prefix' => 'outbound',
        ], function ($router) {
            Route::post('dopostadd', 'App\Http\Controllers\Order\OutboundorderController@dopostadd');
            Route::post('getlist', 'App\Http\Controllers\Order\OutboundorderController@getlist');
            Route::post('getone', 'App\Http\Controllers\Order\OutboundorderController@getone');
            //获取表头信息
            Route::post('gettablefield', 'App\Http\Controllers\Order\OutboundorderController@gettablefield');
            //编辑表头信息
            Route::post('changeorderfield', 'App\Http\Controllers\Order\OutboundorderController@changeorderfield');
            //编辑子订单业绩
            Route::post('editperformance', 'App\Http\Controllers\Order\OutboundorderController@editperformance');
            //差额
            Route::post('editdifference', 'App\Http\Controllers\Order\OutboundorderController@editdifference');
            Route::post('getsubone', 'App\Http\Controllers\Order\OutboundorderController@getsubone');
            //申请开票
            Route::post('invoice', 'App\Http\Controllers\Order\OutboundorderController@invoice');
            //修改合同信息
            Route::post('doinvoiceedit', 'App\Http\Controllers\Order\OutboundorderController@doinvoiceedit');
            //开票列表
            Route::post('invoicelist', 'App\Http\Controllers\Order\OutboundorderController@invoicelist');
            //开票
            Route::post('handleinvoice', 'App\Http\Controllers\Order\OutboundorderController@handleinvoice');
            Route::post('handleinvoicemore', 'App\Http\Controllers\Order\OutboundorderController@handleinvoicemore');
            //审核
            Route::post('handleexamine', 'App\Http\Controllers\Order\OutboundorderController@handleexamine');
            Route::post('handleexaminemore', 'App\Http\Controllers\Order\OutboundorderController@handleexaminemore');
            //未开票总计
            Route::post('invoicedtotal', 'App\Http\Controllers\Order\OutboundorderController@invoicedtotal');
            //导出列表
            Route::post('doexport', 'App\Http\Controllers\Order\OutboundorderController@doexport');
        });

        //退货单
        Route::group([
            'prefix' => 'returnorder',
        ], function ($router) {
            Route::post('dopostadd', 'App\Http\Controllers\Order\ReturnorderController@dopostadd');
            Route::post('getlist', 'App\Http\Controllers\Order\ReturnorderController@getlist');
            Route::post('getone', 'App\Http\Controllers\Order\ReturnorderController@getone');
            //处理退货
            Route::post('handlereturn', 'App\Http\Controllers\Order\ReturnorderController@handlereturn');
        });

        //合同
        Route::group([
            'prefix' => 'contract',
        ], function ($router) {
            Route::post('dopostadd', 'App\Http\Controllers\Order\ContractController@dopostadd');
            Route::post('getlist', 'App\Http\Controllers\Order\ContractController@getlist');
            Route::post('getone', 'App\Http\Controllers\Order\ContractController@getone');
        });

        //订单扩展合同
        Route::group([
            'prefix' => 'contractpreviewextend',
        ], function ($router) {
            Route::post('update', 'App\Http\Controllers\Order\ContractPreviewExtend@update');
        });

        //销售订单执行情况
        Route::group([
            'prefix' => 'saleimplementation',
        ], function ($router) {
            Route::post('getone', 'App\Http\Controllers\Order\SaleimplementationController@getone');
            Route::post('getlist', 'App\Http\Controllers\Order\SaleimplementationController@getlist');
            //结算
            Route::post('handlesettle', 'App\Http\Controllers\Order\SaleimplementationController@handlesettle');
            //客户余额表
            Route::post('custombalance', 'App\Http\Controllers\Order\SaleimplementationController@custombalance');
            Route::post('handlestatus', 'App\Http\Controllers\Order\SaleimplementationController@handlestatus');
        });

        //出库收款对账单
        Route::group([
            'prefix' => 'outboundorderwithpay',
        ], function ($router) {
            Route::post('getlist', 'App\Http\Controllers\Order\OutboundorderwithpayController@getlist');
        });
    });

    /**
     * 退款
     */
    Route::group([
        'prefix' => 'refund',
    ], function ($router) {
        //发起退款
        Route::post('dopostadd', 'App\Http\Controllers\Refund\RefundController@dopostadd');
        //审核退款
        Route::post('handlerefund', 'App\Http\Controllers\Refund\RefundController@handlerefund');
        Route::post('getlist', 'App\Http\Controllers\Refund\RefundController@getlist');
    });

    /**
     * 仓库管理
     */
    Route::group([
        'prefix' => 'warehouse'
    ], function ($router) {
        Route::post('gettypelist', 'App\Http\Controllers\Warehouse\WarehouseController@gettypelist'); //仓库分类列表
        Route::post('getlist', 'App\Http\Controllers\Warehouse\WarehouseController@getlist'); //获取仓库列表
        Route::post('dopostadd', 'App\Http\Controllers\Warehouse\WarehouseController@dopostadd'); //新增仓库
        Route::post('changestatus', 'App\Http\Controllers\Warehouse\WarehouseController@changestatus'); //冻结仓库
        Route::post('dopostedit', 'App\Http\Controllers\Warehouse\WarehouseController@dopostedit'); //编辑仓库

    });

    /**
     * 钢材管理
     */
    Route::group([
        'prefix' => 'steel',
    ], function ($router) {
        //钢材分类
        Route::group([
            'prefix' => 'steeltype',
        ], function ($router) {
            Route::post('dopostadd', 'App\Http\Controllers\Steel\SteelTypeController@dopostadd');
            Route::post('dodel', 'App\Http\Controllers\Steel\SteelTypeController@dodel');
            Route::post('dopostaddsub', 'App\Http\Controllers\Steel\SteelTypeController@dopostaddsub');
            Route::post('getlist', 'App\Http\Controllers\Steel\SteelTypeController@getlist');
            Route::post('changestatus', 'App\Http\Controllers\Steel\SteelTypeController@changestatus');
            Route::any('doexport', 'App\Http\Controllers\Steel\SteelTypeController@doexport');
        });
        //钢材档案
        Route::group([
            'prefix' => 'steelarchive',
        ], function ($router) {
            Route::post('dopostadd', 'App\Http\Controllers\Steel\SteelArchiveController@dopostadd');
            Route::post('dopostedit', 'App\Http\Controllers\Steel\SteelArchiveController@dopostedit');
            Route::post('dodel', 'App\Http\Controllers\Steel\SteelArchiveController@dodel');
            Route::post('getlist', 'App\Http\Controllers\Steel\SteelArchiveController@getlist');
            Route::post('getarchivespec', 'App\Http\Controllers\Steel\SteelArchiveController@getarchivespec');
            Route::post('changestatus', 'App\Http\Controllers\Steel\SteelArchiveController@changestatus');
            Route::any('doexport', 'App\Http\Controllers\Steel\SteelArchiveController@doexport');
            Route::any('dodownload', 'App\Http\Controllers\Steel\SteelArchiveController@dodownload');
            Route::post('doimport', 'App\Http\Controllers\Steel\SteelArchiveController@doimport');

        });
        //钢材属性分类
        Route::group([
            'prefix' => 'steelattrtype',
        ], function ($router) {
            Route::post('dopostadd', 'App\Http\Controllers\Steel\SteelAttrTypeController@dopostadd');
            Route::post('getlist', 'App\Http\Controllers\Steel\SteelAttrTypeController@getlist');
            Route::post('changestatus', 'App\Http\Controllers\Steel\SteelAttrTypeController@changestatus');
        });
        //钢材属性值相关
        Route::group([
            'prefix' => 'steelattrlist',
        ], function ($router) {
            Route::post('dopostadd', 'App\Http\Controllers\Steel\SteelAttrListController@dopostadd');
            Route::post('getlist', 'App\Http\Controllers\Steel\SteelAttrListController@getlist');
            Route::post('changestatus', 'App\Http\Controllers\Steel\SteelAttrListController@changestatus');
            Route::post('doimport', 'App\Http\Controllers\Steel\SteelAttrListController@doimport');
            Route::post('doexport', 'App\Http\Controllers\Steel\SteelAttrListController@doexport');
            Route::post('dodownload', 'App\Http\Controllers\Steel\SteelAttrListController@dodownload');
            Route::post('doexportsteelfactory', 'App\Http\Controllers\Steel\SteelAttrListController@doexportsteelfactory');
            Route::post('doexportmaterial', 'App\Http\Controllers\Steel\SteelAttrListController@doexportmaterial');
            Route::post('doexportbreed', 'App\Http\Controllers\Steel\SteelAttrListController@doexportbreed');
        });
        //基价管理——材质
        Route::group([
            'prefix' => 'steelmaterialprice',
        ], function ($router) {
            Route::post('getlisthistory', 'App\Http\Controllers\Steel\SteelMaterialPriceController@getlisthistory');
            Route::post('getlist', 'App\Http\Controllers\Steel\SteelMaterialPriceController@getlist');
            Route::post('dochangeprice', 'App\Http\Controllers\Steel\SteelMaterialPriceController@dochangeprice');
        });
    });

    /**
     * 结算
     */
    Route::group([
        'prefix' => 'settle'
    ], function ($router) {
        Route::group([
            'prefix' => 'settletype'
        ], function ($router) {
            Route::post('getlist', 'App\Http\Controllers\Settle\SettleTypeController@getlist');
            Route::post('dopostadd', 'App\Http\Controllers\Settle\SettleTypeController@dopostadd');
            Route::post('changestatus', 'App\Http\Controllers\Settle\SettleTypeController@changestatus');
            Route::post('dopostedit', 'App\Http\Controllers\Settle\SettleTypeController@dopostedit');
        });

        Route::group([
            'prefix' => 'settlecompany'
        ], function ($router) {
            Route::post('getlist', 'App\Http\Controllers\Settle\SettleCompanyController@getlist');
            Route::post('dopostadd', 'App\Http\Controllers\Settle\SettleCompanyController@dopostadd');
            Route::post('changestatus', 'App\Http\Controllers\Settle\SettleCompanyController@changestatus');
            Route::post('dopostedit', 'App\Http\Controllers\Settle\SettleCompanyController@dopostedit');
        });
    });

    /**
     * 库存管理
     */
    Route::group([
        'prefix' => 'stock'
    ], function ($router) {
        Route::post('getruinfo', 'App\Http\Controllers\Stock\StockFieldController@getruinfo'); //库存权限查询
        Route::post('doposteditrule', 'App\Http\Controllers\Stock\StockFieldController@doposteditrule'); //编辑库存权限
        Route::post('getlist', 'App\Http\Controllers\Stock\StockController@getlist'); //库存列表
        Route::post('changesuppleyaddprciebypurchase', 'App\Http\Controllers\Stock\StockController@changesuppleyaddprciebypurchase'); //库存列表
        //Route::post('changesuppleyaddprciebypurchase', 'App\Http\Controllers\Stock\StockController@changesuppleyaddprciebypurchase');//库存列表
        Route::post('topdata', 'App\Http\Controllers\Stock\StockController@topdata');
    });

    Route::group([
        'prefix' => 'stocksub'
    ], function ($router) {
        Route::post('getlist', 'App\Http\Controllers\Stock\StockSubController@getlist');
    });


    Route::group([
        'prefix' => 'stockallot'
    ], function ($router) {
        Route::post('dopostadd', 'App\Http\Controllers\Stock\StockAllotOrderController@dopostadd');
        Route::post('getlist', 'App\Http\Controllers\Stock\StockAllotOrderController@getlist');
        Route::post('getinfo', 'App\Http\Controllers\Stock\StockAllotOrderController@getinfo');
        Route::post('dodel', 'App\Http\Controllers\Stock\StockAllotOrderController@dodel');
    });

    /**
     *模版管理
     */
    Route::group([
        'prefix' => 'template'
    ], function ($router) {
        /**
         * 合同模版管理
         */
        Route::group([
            'prefix' => 'templatecontracts'
        ], function ($router) {
            Route::post('getlist', 'App\Http\Controllers\Template\TemplateContractsController@getlist');
            // Route::post('dopostadd', 'App\Http\Controllers\Template\TemplateContractsController@dopostadd');
            // Route::post('changestatus', 'App\Http\Controllers\Template\TemplateContractsController@changestatus');
        });

        /**
         * 报车单模版管理
         */
        Route::group([
            'prefix' => 'templatedispatchnote'
        ], function ($router) {
            Route::post('getlist', 'App\Http\Controllers\Template\TemplateDispatchnoteController@getlist');
            // Route::post('dopostadd', 'App\Http\Controllers\Template\TemplateDispatchnoteController@dopostadd');
            // Route::post('changestatus', 'App\Http\Controllers\Template\TemplateDispatchnoteController@changestatus');
        });

        Route::group([
            'prefix' => 'templatecontractsstamp'
        ], function ($router) {
            Route::post('getlist', 'App\Http\Controllers\Template\TemplateContractsStampController@getlist');
            Route::post('dopostadd', 'App\Http\Controllers\Template\TemplateContractsStampController@dopostadd');
            Route::post('changestatus', 'App\Http\Controllers\Template\TemplateContractsStampController@changestatus');
        });
    });

    /**
     *采购相关
     */
    Route::group([
        'prefix' => 'purchase'
    ], function ($router) {
        Route::post('showdata', 'App\Http\Controllers\Purchase\ShowDataController@showdata');
        /**
         * 采购协议
         */
        Route::group([
            'prefix' => 'purchaseagreement'
        ], function ($router) {
            Route::post('getlist', 'App\Http\Controllers\Purchase\PurchaseAgreementController@getlist');
            Route::post('dopostadd', 'App\Http\Controllers\Purchase\PurchaseAgreementController@dopostadd');
            Route::post('dodel', 'App\Http\Controllers\Purchase\PurchaseAgreementController@dodel');
            Route::post('getinfo', 'App\Http\Controllers\Purchase\PurchaseAgreementController@getinfo');
            Route::post('dopostedit', 'App\Http\Controllers\Purchase\PurchaseAgreementController@dopostedit');
        });
        /**
         * 采购订单
         */
        Route::group([
            'prefix' => 'purchaseorder'
        ], function ($router) {
            Route::post('dopostadd', 'App\Http\Controllers\Purchase\PurchaseOrderController@dopostadd');
            Route::post('getorderinfo', 'App\Http\Controllers\Purchase\PurchaseOrderController@getorderinfo');
            Route::post('gettablefield', 'App\Http\Controllers\Purchase\PurchaseOrderController@gettablefield');
            Route::post('getorderlist', 'App\Http\Controllers\Purchase\PurchaseOrderController@getorderlist');
            Route::post('doorderdel', 'App\Http\Controllers\Purchase\PurchaseOrderController@doorderdel');
            Route::post('createstockinorder', 'App\Http\Controllers\Purchase\PurchaseOrderController@createstockinorder');
            Route::post('dopostedit', 'App\Http\Controllers\Purchase\PurchaseOrderController@dopostedit');
            Route::post('changeorderfield', 'App\Http\Controllers\Purchase\PurchaseOrderController@changeorderfield');
            Route::post('createprepayorder', 'App\Http\Controllers\Purchase\PurchaseOrderController@createprepayorder');
            Route::post('createprepayorderwithoutsub', 'App\Http\Controllers\Purchase\PurchaseOrderController@createprepayorderwithoutsub');
            Route::post('getbankinfowithorder', 'App\Http\Controllers\Purchase\PurchaseOrderController@getbankinfowithorder');
            Route::post('doorderbindpa', 'App\Http\Controllers\Purchase\PurchaseOrderController@doorderbindpa');
            Route::post('getbankinfowithorderarr', 'App\Http\Controllers\Purchase\PurchaseOrderController@getbankinfowithorderarr');
            Route::post('createprepayorderbyorderarr', 'App\Http\Controllers\Purchase\PurchaseOrderController@createprepayorderbyorderarr');
            Route::post('dopostimprove', 'App\Http\Controllers\Purchase\PurchaseOrderController@dopostimprove');
            Route::post('doorderdelaudit', 'App\Http\Controllers\Purchase\PurchaseOrderController@doorderdelaudit');
        });

        /**
         * 预付单
         */
        Route::group([
            'prefix' => 'purchaseprepayorder'
        ], function ($router) {
            Route::post('getorderlist', 'App\Http\Controllers\Purchase\PurchasePrePayOrderController@getorderlist');
            Route::post('doorderdel', 'App\Http\Controllers\Purchase\PurchasePrePayOrderController@doorderdel');
            Route::post('getinfo', 'App\Http\Controllers\Purchase\PurchasePrePayOrderController@getinfo');
            Route::post('dopostedit', 'App\Http\Controllers\Purchase\PurchasePrePayOrderController@dopostedit');
            Route::post('doorderauditbydingding', 'App\Http\Controllers\Purchase\PurchasePrePayOrderController@doorderauditbydingding');
        });

        /**
         * 付款单
         */
        Route::group([
            'prefix' => 'purchasepayorder'
        ], function ($router) {
            Route::post('getorderlist', 'App\Http\Controllers\Purchase\PurchasePayOrderController@getorderlist');
            Route::post('getinfo', 'App\Http\Controllers\Purchase\PurchasePayOrderController@getinfo');
        });

        /**
         * 付款单新
         */
        Route::group([
            'prefix' => 'purchasepayordernew'
        ], function ($router) {
            Route::post('getorderlist', 'App\Http\Controllers\Purchase\PurchasePayOrderNewController@getorderlist');
            Route::post('getinfo', 'App\Http\Controllers\Purchase\PurchasePayOrderNewController@getinfo');
            Route::post('dopayrealmoney', 'App\Http\Controllers\Purchase\PurchasePayOrderNewController@dopayrealmoney');
            Route::post('getwarehousingorderwithpay', 'App\Http\Controllers\Purchase\PurchasePayOrderNewController@getwarehousingorderwithpay');
            Route::post('getinfobypaysncode', 'App\Http\Controllers\Purchase\PurchasePayOrderNewController@getinfobypaysncode');
            Route::post('doauditcancel', 'App\Http\Controllers\Purchase\PurchasePayOrderNewController@doauditcancel');
            Route::post('doauditsuccess', 'App\Http\Controllers\Purchase\PurchasePayOrderNewController@doauditsuccess');
            Route::post('doauditrefuse', 'App\Http\Controllers\Purchase\PurchasePayOrderNewController@doauditrefuse');
        });

        /**
         * 付款审批
         */
        Route::group([
            'prefix' => 'purchasepayorderapprove'
        ], function ($router) {
            Route::post('getorderlist', 'App\Http\Controllers\Purchase\PurchasePayOrderApproveController@getorderlist');
            Route::post('getinfo', 'App\Http\Controllers\Purchase\PurchasePayOrderApproveController@getinfo');
            Route::post('doauditcancel', 'App\Http\Controllers\Purchase\PurchasePayOrderApproveController@doauditcancel');
            Route::post('doauditsuccess', 'App\Http\Controllers\Purchase\PurchasePayOrderApproveController@doauditsuccess');
            Route::post('doauditrefuse', 'App\Http\Controllers\Purchase\PurchasePayOrderApproveController@doauditrefuse');
            Route::post('dopayrealmoney', 'App\Http\Controllers\Purchase\PurchasePayOrderApproveController@dopayrealmoney');
            Route::post('getPayOrderApproveList', 'App\Http\Controllers\Purchase\PurchasePayOrderApproveController@getPayOrderApproveList');
            Route::post('dofinish', 'App\Http\Controllers\Purchase\PurchasePayOrderApproveController@dofinish');
        });

        /**
         * 进货单订单
         */
        Route::group([
            'prefix' => 'purchasestockinorder'
        ], function ($router) {
            Route::post('getorderlist', 'App\Http\Controllers\Purchase\PurchaseStockinOrderController@getorderlist');
            Route::post('getorderinfo', 'App\Http\Controllers\Purchase\PurchaseStockinOrderController@getorderinfo');
            Route::post('createwarehousingorder', 'App\Http\Controllers\Purchase\PurchaseStockinOrderController@createwarehousingorder');
            Route::post('doorderdel', 'App\Http\Controllers\Purchase\PurchaseStockinOrderController@doorderdel');
            Route::post('doorderdelmore', 'App\Http\Controllers\Purchase\PurchaseStockinOrderController@doorderdelmore');
            Route::post('changeorderfield', 'App\Http\Controllers\Purchase\PurchaseStockinOrderController@changeorderfield');
            Route::post('dopostedit', 'App\Http\Controllers\Purchase\PurchaseStockinOrderController@dopostedit');
            Route::post('gettablefield', 'App\Http\Controllers\Purchase\PurchaseStockinOrderController@gettablefield');
            Route::post('doorderdelaudit', 'App\Http\Controllers\Purchase\PurchaseStockinOrderController@doorderdelaudit');
        });

        /**
         * 入库单订单
         */
        Route::group([
            'prefix' => 'purchasewarehousingorder'
        ], function ($router) {
            Route::post('getorderlist', 'App\Http\Controllers\Purchase\PurchaseWarehousingOrderController@getorderlist');
            Route::post('docancelorderaudit', 'App\Http\Controllers\Purchase\PurchaseWarehousingOrderController@docancelorderaudit');
            Route::post('doorderaudit', 'App\Http\Controllers\Purchase\PurchaseWarehousingOrderController@doorderaudit');
            Route::post('doorderauditbyfinance', 'App\Http\Controllers\Purchase\PurchaseWarehousingOrderController@doorderauditbyfinance');
            Route::post('dopostedit', 'App\Http\Controllers\Purchase\PurchaseWarehousingOrderController@dopostedit');
            Route::post('gettablefield', 'App\Http\Controllers\Purchase\PurchaseWarehousingOrderController@gettablefield');
            Route::post('changeorderfield', 'App\Http\Controllers\Purchase\PurchaseWarehousingOrderController@changeorderfield');
            Route::post('createsettleorder', 'App\Http\Controllers\Purchase\PurchaseWarehousingOrderController@createsettleorder');
            Route::post('getorderinfo', 'App\Http\Controllers\Purchase\PurchaseWarehousingOrderController@getorderinfo');
            Route::post('doorderinvoiceconfirm', 'App\Http\Controllers\Purchase\PurchaseWarehousingOrderController@doorderinvoiceconfirm');
            Route::post('getinfobyordersncode', 'App\Http\Controllers\Purchase\PurchaseWarehousingOrderController@getinfobyordersncode');

            Route::any('doorderexport', 'App\Http\Controllers\Purchase\PurchaseWarehousingOrderController@doorderexport');

        });

        /**
         * 预结算单
         */
        Route::group([
            'prefix' => 'purchasepresettleorder'
        ], function ($router) {
            Route::post('getorderlist', 'App\Http\Controllers\Purchase\PurchasePreSettleOrderController@getorderlist');
            Route::post('dooncemorechangeprice', 'App\Http\Controllers\Purchase\PurchasePreSettleOrderController@dooncemorechangeprice');
            Route::post('dooncemorechangepriceall', 'App\Http\Controllers\Purchase\PurchasePreSettleOrderController@dooncemorechangepriceall');
        });

        /**
         * 采购订单执行情况
         */
        Route::group([
            'prefix' => 'purchaseorderprocess'
        ], function ($router) {
            Route::post('getorderlist', 'App\Http\Controllers\Purchase\PurchaseOrderProcessController@getorderlist');
            Route::post('getorderinfo', 'App\Http\Controllers\Purchase\PurchaseOrderProcessController@getorderinfo');
            Route::post('doorderclickprice', 'App\Http\Controllers\Purchase\PurchaseOrderProcessController@doorderclickprice');
            Route::post('dofinish', 'App\Http\Controllers\Purchase\PurchaseOrderProcessController@dofinish');
        });

        /**
         * 后结算取价
         */
        Route::group([
            'prefix' => 'purchasesettlepricelog'
        ], function ($router) {
            Route::post('getlist', 'App\Http\Controllers\Purchase\PurchaseSettlePriceLogController@getlist');
            Route::post('dopostadd', 'App\Http\Controllers\Purchase\PurchaseSettlePriceLogController@dopostadd');
            Route::post('dopostedit', 'App\Http\Controllers\Purchase\PurchaseSettlePriceLogController@dopostedit');
            Route::post('changestatus', 'App\Http\Controllers\Purchase\PurchaseSettlePriceLogController@changestatus');
            Route::post('dodel', 'App\Http\Controllers\Purchase\PurchaseSettlePriceLogController@dodel');
            Route::post('getinfo', 'App\Http\Controllers\Purchase\PurchaseSettlePriceLogController@getinfo');
        });
        /***
         *  采购费用单
         *  付款，查看
         *
        */
        Route::group([
            'prefix' => 'purchaseexpense'
        ], function ($router) {
            Route::post('dopostadd', 'App\Http\Controllers\Purchase\ExpenseVoucherInfoPayController@dopostadd');
            Route::post('getpaylist', 'App\Http\Controllers\Purchase\ExpenseVoucherInfoPayController@getList');

            Route::post('dotsaudit', 'App\Http\Controllers\Purchase\ExpenseVoucherInfoPayController@dotsaudit');
            Route::post('docpaudit', 'App\Http\Controllers\Purchase\ExpenseVoucherInfoPayController@docpaudit');
            Route::post('docancel', 'App\Http\Controllers\Purchase\ExpenseVoucherInfoPayController@docancel');

            Route::post('gettslist', 'App\Http\Controllers\Purchase\ExpenseVoucherInfoPayController@gettslist');
            Route::post('getcplist', 'App\Http\Controllers\Purchase\ExpenseVoucherInfoPayController@getcplist');
            Route::post('getpaymentlist', 'App\Http\Controllers\Purchase\ExpenseVoucherInfoPayController@getpaymentlist');

            Route::post('dopayment', 'App\Http\Controllers\Purchase\ExpenseVoucherInfoPayApproveController@dopayment');

        });
    });

    /**
     * 表头设置
     */
    Route::group([
        'prefix' => 'tableextfeild'
    ], function ($router) {
        Route::post('getlist', 'App\Http\Controllers\Table\TableExtFeildController@getlist');
        Route::post('getinfo', 'App\Http\Controllers\Table\TableExtFeildController@getinfo');
        Route::post('setfeildtitle', 'App\Http\Controllers\Table\TableExtFeildController@setfeildtitle');
    });

    /**
     * 公共部分
     */
    Route::group([
        'prefix' => 'common'
    ], function ($router) {
        Route::post('uploadtooss', 'App\Http\Controllers\Common\CommonController@uploadtooss');
        Route::post('getmenulist', 'App\Http\Controllers\Common\RuleMenuController@getmenulistnew');
        Route::post('uploadfile', 'App\Http\Controllers\Common\CommonController@uploadfile');
        Route::post('clearmemcache', 'App\Http\Controllers\Common\CommonController@clearmemcache');

        Route::post('getAccountList', 'App\Http\Controllers\Common\MangerController@getAccountList');
        Route::post('getcurrentompanyinfo', 'App\Http\Controllers\Common\MangerController@getcurrentompanyinfo');
        Route::post('geteditloglist', 'App\Http\Controllers\Common\EditLogController@getlist');
        Route::post('geteditloginfo', 'App\Http\Controllers\Common\EditLogController@getinfo');

    });

    /**
     * 余额相关
     */
    Route::group([
        'prefix' => 'balance'
    ], function ($router) {
        Route::post('getbalancelist', 'App\Http\Controllers\Balance\BalanceController@getbalancelist');
        Route::post('resetbalance', 'App\Http\Controllers\Balance\BalanceController@resetbalance');
        Route::post('dodownload', 'App\Http\Controllers\Balance\BalanceController@dodownload');
        Route::post('doimport', 'App\Http\Controllers\Balance\BalanceController@doimport');
        Route::post('getbalanceloglist', 'App\Http\Controllers\Balance\BalanceController@getbalanceloglist');
        Route::post('getcustombalance', 'App\Http\Controllers\Balance\BalanceController@getcustombalance');
    });

    /**
     * 费用类型
     */
    Route::group([
        'prefix' => 'feetype'
    ], function ($router) {
        Route::post('getlist', 'App\Http\Controllers\Fee\FeeTypeController@getlist');
        Route::post('dopostadd', 'App\Http\Controllers\Fee\FeeTypeController@dopostadd');
        Route::post('changestatus', 'App\Http\Controllers\Fee\FeeTypeController@changestatus');
        Route::post('dopostedit', 'App\Http\Controllers\Fee\FeeTypeController@dopostedit');
        Route::post('dodel', 'App\Http\Controllers\Fee\FeeTypeController@dodel');
        Route::post('getFeeTypeCategory', 'App\Http\Controllers\Fee\FeeTypeController@getFeeTypeCategory');
    });

    /**
     * 测试锁
     */
    Route::group([
        'prefix' => 'commontoken'
    ], function ($router) {
        Route::post('createtoken', 'App\Http\Controllers\Common\TokenController@createtoken');
        Route::post('testform', 'App\Http\Controllers\Common\TokenController@testform');
    });

    Route::group([
        'prefix' => 'reportforms',
    ], function ($router) {
        Route::post('getlistqoq', 'App\Http\Controllers\ReportForms\ReportFormsController@getlistqoq');
        Route::post('getlistchain', 'App\Http\Controllers\ReportForms\ReportFormsController@getlistchain');
        Route::post('getPriceTrend', 'App\Http\Controllers\ReportForms\ReportFormsController@getPriceTrend');
        Route::post('getPurchaseOverview', 'App\Http\Controllers\ReportForms\ReportFormsController@getPurchaseOverview');
        Route::post('getSaleOverview', 'App\Http\Controllers\ReportForms\ReportFormsController@getSaleOverview');
//        Route::post('getprice', 'App\Http\Controllers\ReportForms\PriceFormsController@getprice');
    });


});
